<template>
  <div class="app">
    <BaseButton :count="count" @changeCount="handleChange"></BaseButton>
  </div>
</template>

<script>
import BaseButton from "./components/BaseButton.vue";
export default {
  components: {
    BaseButton
  },
  data() {
    return {
      count: 0
    };
  },
  methods: {
    handleChange(newValue) {
      this.count = newValue;
    }
  }
};
</script>

<style>
</style>